package cn.fl.capital.service.impl;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.exception.BaseException;
import cn.fl.capital.api.ICapBindLogApiService;
import cn.fl.capital.condition.CapBindLogQC;
import cn.fl.capital.dto.CapBindLogDTO;
import cn.fl.capital.service.ICapBindLogService;
import cn.fl.capital.api.ICapBindLogApiService;
import cn.fl.capital.transform.CapBindLogVOTransform;
import cn.fl.capital.vo.CapBindLogVO;


@Service
public class CapBindLogServiceImpl implements ICapBindLogService {
	
	@Autowired
	private ICapBindLogApiService capBindLogApiService;

	@Override
	public Long add(CapBindLogVO entity) throws BaseException {
		return this.capBindLogApiService.add(CapBindLogVOTransform.baseToDTO(entity));
	}

	@Override
	public Boolean modify(CapBindLogVO vo) throws BaseException {
		
		return this.capBindLogApiService.modify(CapBindLogVOTransform.baseToDTO(vo));
	}

	@Override
	public CapBindLogVO selectByFundId(Long fundId) throws BaseException {
		
		return CapBindLogVOTransform.baseToVO(this.capBindLogApiService.selectByFundId(fundId));
	}

	@Override
	public List<CapBindLogVO> searchList(CapBindLogQC qc) throws BaseException {
		
		return CapBindLogVOTransform.toVOList(this.capBindLogApiService.searchList(qc));
	}

}
